package edu.psu.geovista.app.dataloader.v1.gui;

import edu.psu.geovista.app.dataloader.v1.DataLoaders;

import javax.swing.*;
import java.awt.*;

/*
 * ChooseDataPane.java
 *
 * Created on April 15, 2004, 2:48 PM
 */

/**
 *
 * @Original Author  jinchen
 */
public class ChooseDataPane extends BasicPane{
    
    /** Creates new form ChooseDataPane1 */
    public ChooseDataPane(DataLoaders d) {
        super(d);
        initComponents();
    }

    public boolean isPcpDataLoad(){
        return pcp.isSelected();
    }
    public boolean isTsDataLoad(){
        return ts.isSelected();
    }
    public void setPcpDataLoad(boolean load){
        pcp.setSelected(load);
    }
    public void setTsDataLoad(boolean load){
        ts.setSelected(load);
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    protected void initComponents() {//GEN-BEGIN:initComponents
        JPanel mp=new JPanel();

        pcp = new javax.swing.JCheckBox();
        ts = new javax.swing.JCheckBox();

        mp.setLayout(new java.awt.GridLayout(2, 0));

        mp.setBorder(new javax.swing.border.TitledBorder(null, "Choose data types to load", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,DataLoaders.FONT_PAGE_TITLE , DataLoaders.COLOR_SECTION_TITLE));//new java.awt.Font("MS Sans Serif", 1, 12)
        pcp.setSelected(true);
        pcp.setText("Primary Data - for Map/PCP/Scatter Plot");
        mp.add(pcp);

        ts.setSelected(true);
        ts.setText("Time Series data - for the Time Series Plot");
        mp.add(ts);
        
        this.setLayout(new BorderLayout());
        add(mp);
        add(this.getControlPane(),BorderLayout.SOUTH);

    }//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    protected  javax.swing.JCheckBox pcp;
    protected javax.swing.JCheckBox ts;
    // End of variables declaration//GEN-END:variables
    
}
